<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
</head>
<body>
    
</body>
</html>
<script>
    
    var salary =10000;
    var jiZhun=7662;
    // var yingNa=5223.95
    if (salary>=jiZhun){
        var yingNa=jiZhun*0.225+3500
        if(salary-yingNa<1500){
        console.log((salary-yingNa)*0.03-0);
        }
        if(1500<salary-yingNa && salary-yingNa<=4500){
        console.log((salary-yingNa)*0.1-105);
        }
        if(4500<salary-yingNa && salary-yingNa<=9000){
        console.log((salary-yingNa)*0.2-555);
        }
        if(9000<salary-yingNa && salary-yingNa<=35000){
        console.log((salary-yingNa)*0.25-1005);
        }
        if(35000<salary-yingNa && salary-yingNa<=55000){
        console.log((salary-yingNa)*0.35-5505);
        }
        if(55000<salary-yingNa && salary-yingNa<=80000){
        console.log((salary-yingNa)*0.45-13505);
        }
     }
     if (salary<jiZhun){
        var yingNa=salary*0.225+3500
        if(salary-yingNa<1500){
        console.log((salary-yingNa)*0.03-0);
        }
        if(1500<salary-yingNa && salary-yingNa<=4500){
        console.log((salary-yingNa)*0.1-105);
        }
        if(4500<salary-yingNa && salary-yingNa<=9000){
        console.log((salary-yingNa)*0.2-555);
        }
        if(9000<salary-yingNa && salary-yingNa<=35000){
        console.log((salary-yingNa)*0.25-1005);
        }
        if(35000<salary-yingNa && salary-yingNa<=55000){
        console.log((salary-yingNa)*0.35-5505);
        }
        if(55000<salary-yingNa && salary-yingNa<=80000){
        console.log((salary-yingNa)*0.45-13505);
        }
     }
console.log("以下是修改的作业")

      var zGongzi =10000;
      //基准工资
      var jZGongzi=0;
      if(jZGongzi<zGongzi){
            jZGongzi=7662;
      }
      else{
          jZGongzi=jZGongzi;
      }
      var biLi =2/100+0.5/100+12/100+8/100
    //   console.log(biLi);
      var sanXianYiJin=jZGongzi*biLi;
      var suoDeE=zGongzi-sanXianYiJin-3500;
      //声明变量并赋值为零
      var shuiE = 0;
      var shuiLv=null;
      var kouChuShu=null;
      if(suoDeE<=0){
          console.log("您不需要给国际做出贡献");
      }
      else  if(suoDeE<1500){
             shuiLv=0.03;
             kouChuShu=0;
      }
      else if(/*suoDeE>1500  && */suoDeE<=4500){
             shuiLv=0.1;
             kouChuShu=105;
      }
      else if(/*suoDeE>1500  && */suoDeE<=9000){
             shuiLv=0.2;
             kouChuShu=555;
      }
      else if(/*suoDeE>1500  && */suoDeE<=35000){
             shuiLv=0.25;
             kouChuShu=1005;
      }
       else if(/*suoDeE>1500  && */suoDeE<=55000){
             var shuiLv=0.30;
             var kouChuShu=2755;
      }
       else if(/*suoDeE>1500  && */suoDeE<=80000){
             var shuiLv=0.35;
             var kouChuShu=5505;
      }
       else if(/*suoDeE>1500  && */suoDeE>80000){
             var shuiLv=0.45;
             var kouChuShu=13505;
      }
    //   console.log(shuiLv);
    //   console.log(kouChuShu);
    //   console.log(shuiE=suoDeE*shuiLv-kouChuShu)
    shuiE=suoDeE*shuiLv-kouChuShu;
    console.log(shuiE)
    alert(shuiE);

    
</script>